﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using MobileSales.Model.Employees;

namespace MobileSales.Server.RestServices
{
    [ServiceContract]
    public interface IAuthServiceREST
    {
        [OperationContract]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest,
                RequestFormat = WebMessageFormat.Json,
                ResponseFormat = WebMessageFormat.Json,
                UriTemplate = "Login",
                Method = "POST")]
        EmployeeAccess Login(string userName, string passwdSHA1, string c2dmRegistrationId);

        [OperationContract]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest,
                RequestFormat = WebMessageFormat.Json,
                ResponseFormat = WebMessageFormat.Json,
                UriTemplate = "ChangePassword",
                Method = "POST")]
        void ChangePassword(string oldPasswdSHA1, string newPasswdSHA1);

    }
}
